<div class="m15">
    <form class="layui-form" method="post" action="{:Url::build('Category/moveRenew')}">
        <div class="layui-form-item">
            <label class="layui-form-label">移动分类</label>
            <div class="layui-input-inline">
                <select name="pid" lay-verify="required">
                    {volist name='list' id='vo'}
                    <option value="{$vo.id}">{$vo.title}</option>
                    {/volist}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="id" value="{$id ?? ''}">
                <button class="layui-btn" lay-submit lay-filter="move">立即提交</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    layui.use(['jquery', 'layer', 'form'], function () {

        layui.form.render('select');
        //监听提交
        layui.form.on('submit(move)', function (data) {
            layui.$.post(data.form.action, data.field, function (info) {
                status_load(info, data.elem);
            });
            return false;
        });
    });
</script>